package coop.tecso.test.objets.complex;

//src/gen
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.JoinColumns;
import javax.persistence.ManyToOne;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;
import javax.persistence.Version;

/**
 *
 */
@Entity
@Table(name = "COUPON_FLOWN_EMD")
public class CouponFlownEmd implements java.io.Serializable {
	private static final long serialVersionUID = 1L;
	@Id
	@GeneratedValue(strategy = GenerationType.AUTO, generator = "COUPON_FLOWN_EMD_SEQ")
	@SequenceGenerator(name = "COUPON_FLOWN_EMD_SEQ", sequenceName = "COUPON_FLOWN_EMD_SEQ", allocationSize = 1)
	@Column(name = "COUPON_FLOWN_EMD_ID", nullable = false)
	private int id;
	@Version
	@Column(name = "VERSION")
	private int couponFlownEmdversion;

	/**
	 *
	 */
	@Basic(optional = false)
	@Column(name = "PAX_NAME", nullable = false, length = 255)
	private String paxName;

	/**
	 *
	 */
	@Column(name = "TEC_CREATION_USER", length = 255)
	private String tecCreationUser;

	/**
	 *
	 */
	@Column(name = "TEC_CREATION_TIMESTAMP")
	private java.sql.Timestamp tecCreationTimestamp;

	/**
	 *
	 */
	@Column(name = "TEC_MODIFICATION_TIMESTAMP")
	private java.sql.Timestamp tecModificationTimestamp;

	/**
	 *
	 */
	@Column(name = "TEC_MODIFICATION_USER", length = 255)
	private String tecModificationUser;

	/**
	 *
	 */
	@Column(name = "TEC_DELETED")
	private Boolean tecDeleted;

	/**
	 *
	 */
	@Basic(optional = false)
	@Column(name = "CONSOLIDATED_TO", nullable = false, length = 17)
	private String consolidatedTo;

	/**
	 *
	 */
	@Basic(optional = false)
	@Column(name = "PASSENGER_TYPE_FK", nullable = false, length = 3)
	private String passengerTypeFk;

	/**
	 *
	 */
	@Column(name = "RFIS_FK", length = 3)
	private String rfisFk;

	/**
	 *
	 */
	@ManyToOne(targetEntity = CouponFlown.class, optional = false, fetch = FetchType.LAZY)
	@JoinColumns({ @JoinColumn(name = "COUPON_FLOWN_FK", referencedColumnName = "COUPON_FLOWN_ID", nullable = false) })
	private CouponFlown couponFlown;

	/**
	 *
	 */
	@ManyToOne(targetEntity = CouponFlownPax.class, fetch = FetchType.LAZY)
	@JoinColumns({ @JoinColumn(name = "COUPON_FLOWN_PAX_FK", referencedColumnName = "COUPON_FLOWN_PAX_ID") })
	private CouponFlownPax couponFlownPax;

	public CouponFlownEmd() {
	}

	// Constructor for primary key
	public CouponFlownEmd(int id) {
		this.id = id;
	}

	/**
	 * Autogenerated key
	 */
	public int getId() {
		return id;
	}

	public int getCouponFlownEmdversion() {
		return couponFlownEmdversion;
	}

	public void setCouponFlownEmdversion(int couponFlownEmdversion) {
		this.couponFlownEmdversion = couponFlownEmdversion;
	}

	public String getPaxName() {
		return paxName;
	}

	public void setPaxName(String paxName) {
		this.paxName = paxName;
	}

	public String getTecCreationUser() {
		return tecCreationUser;
	}

	public void setTecCreationUser(String tecCreationUser) {
		this.tecCreationUser = tecCreationUser;
	}

	public java.sql.Timestamp getTecCreationTimestamp() {
		return tecCreationTimestamp;
	}

	public void setTecCreationTimestamp(java.sql.Timestamp tecCreationTimestamp) {
		this.tecCreationTimestamp = tecCreationTimestamp;
	}

	public java.sql.Timestamp getTecModificationTimestamp() {
		return tecModificationTimestamp;
	}

	public void setTecModificationTimestamp(java.sql.Timestamp tecModificationTimestamp) {
		this.tecModificationTimestamp = tecModificationTimestamp;
	}

	public String getTecModificationUser() {
		return tecModificationUser;
	}

	public void setTecModificationUser(String tecModificationUser) {
		this.tecModificationUser = tecModificationUser;
	}

	public Boolean getTecDeleted() {
		return tecDeleted;
	}

	public void setTecDeleted(Boolean tecDeleted) {
		this.tecDeleted = tecDeleted;
	}

	public String getConsolidatedTo() {
		return consolidatedTo;
	}

	public void setConsolidatedTo(String consolidatedTo) {
		this.consolidatedTo = consolidatedTo;
	}

	public String getPassengerTypeFk() {
		return passengerTypeFk;
	}

	public void setPassengerTypeFk(String passengerTypeFk) {
		this.passengerTypeFk = passengerTypeFk;
	}

	public String getRfisFk() {
		return rfisFk;
	}

	public void setRfisFk(String rfisFk) {
		this.rfisFk = rfisFk;
	}

	public CouponFlown getCouponFlown() {
		return couponFlown;
	}

	public void setCouponFlown(CouponFlown couponFlown) {
		this.couponFlown = couponFlown;
	}

	public CouponFlownPax getCouponFlownPax() {
		return couponFlownPax;
	}

	public void setCouponFlownPax(CouponFlownPax couponFlownPax) {
		this.couponFlownPax = couponFlownPax;
	}
}
